home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Getting Started / MPW Development / Installation Guide < prev   
Encoding:
Text File  |  1996-08-16  |  12.2 KB  |  149 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                     
  5. Installation Guide for MPW
  6. ODF Release 1 Update 2                                                                                                                                             
  7.  
  8. This document provides installation instructions for installing ODF for use with MPW-based compilers.
  9.  
  10.  
  11. Table of Contents
  12. -------------------------
  13. • Configuring your MPW Environment
  14. • Installing ODF
  15.  
  16. Configuring Your MPW Environment
  17.  
  18. Before installing ODF, you must make sure that your MPW environment is configured for compiling ODF. To do that, you must do the following:
  19.  
  20.    1) Install MPW.
  21.    2) Install the MPW Additions.
  22.    3) Install the OpenDoc headers, libraries, and build support for MPW.
  23.  
  24.  
  25. 1) Install MPW.
  26. Install the MPW environment using the Installer on disc 1 of the E.T.O. #21 CD-ROM set. 
  27.  
  28. IMPORTANT: You must use the MrC and SCpp compilers found on E.T.O. #21 (or later) to compile ODF, because ODF uses the template instantiation mechanisms of these compilers for its template-based classes.
  29.  
  30.  
  31. 2) Install the MPW Additions
  32. First navigate into the “:OpenDoc Development Framework:Getting Started:MPW Development:” folder on the E.T.O. Frameworks CD-ROM. The folder here called "MPW Additions" contains additions to your MPW environment that are necessary to build ODF. They include startup files as well as files needed to use SOMobjects™ for Mac OS. To install:
  33.  
  34. • Open the MPW Additions folder and move the files UserStartup•OpenDoc and UserStartup•ODF into the Startup Items folder inside the MPW folder on your hard disk (i.e., the folder containing the MPW Shell). Move the file UserStartupTS•ODF into the TS Startup Items folder.
  35.  
  36. • Open the SOMobjects™ for Mac OS folder, then the MPW Additions folder. Move the UserStartup•somc file into the Startup Items folder inside the MPW folder on your hard disk. Move the contents of Scripts, Tools, and Examples folder into the corresponding folders inside the MPW folder on your hard disk. Move the contents of the subfolders of the Interfaces folder and the Libraries folder to the corresponding subfolders inside the Interfaces&Libraries folder on your hard disk (this latter folder is located at the same folder level as your MPW folder) -- if there is not a corresponding subfolder, create one first.
  37.  
  38. An easier way to install the SOMobjects MPW Additions is to execute the following lines from the worksheet of the MPW Shell:
  39.  
  40. Directory "E.T.O. Frameworks #21:OpenDoc Development Framework:Getting Started:"
  41. Directory ":MPW Development:MPW Additions:SOMobjects™ for Mac OS:MPW Additions:"
  42. Duplicate -y "UserStartup•somc" "{MPW}Startup Items"
  43. Backup -r -a -c -from ":Examples:" -to "{MPW}Examples"
  44. Backup -r -a -c -from ":Scripts:" -to "{MPW}Scripts"
  45. Backup -r -a -c -from ":Tools:" -to "{MPW}Tools"
  46. Backup -r -a -c -from ":Interfaces:" -to "{CIncludes}:"
  47. Backup -r -a -c -from ":Libraries:" -to "{SharedLibraries}:"
  48.  
  49. These command generate a set of Duplicate commands which, when selected and executed, will move all the files into place.
  50.  
  51.  
  52. 3) Install the OpenDoc headers, libraries, and build support for MPW.
  53. In the "OpenDoc Development" folder (inside the "OpenDoc Support for ODF" folder at the root level of the CD-ROM), you will find two folders called "OpenDoc" and "Build Support". Copy them to the MPW folder on your hard disk.
  54.  
  55.  
  56. Installing ODF
  57.  
  58. For the most part, installing ODF is simply a matter of copying the ODF source and tools to your local hard drive. However, since ODF supports several different compilers, there are some files that you don't need to copy if you are doing all of your development with MPW. 
  59.  
  60. The basic steps you need to follow when installing ODF for MPW are as shown in the following list. These steps are explained in more detail below.
  61.  
  62.    1) Copy the ODFDev folder to your local hard drive.
  63.    2) Copy the stationery files for the ODF sample parts to your Stationery folder. (optional)
  64.    3) Copy any desired reference materials to your local hard drive. (optional)
  65.    4) Make an alias to the ODF library (and sample parts).
  66.    5) Relaunch the MPW Shell.
  67.  
  68. Note: These steps describe how to install the Debug version of the ODFLibrary and examples. If you simply want to play with the Release version of the ODF parts, copy the appropriate files from the "ODF Sample Parts" folder to your system. For details on doing this, see the information about this folder in the Contents of This CD section of the Important Information document inside the  OpenDoc Development Framework folder.
  69.  
  70.  
  71. 1) Copy the ODFDev folder to your local hard drive.
  72. Copy the ODFDev folder (in the OpenDoc Development Framework folder) in its entirety to your local hard drive. This folder contains the ODF source code and the source code for ODF’s example parts. The :ODFDev:ODF: subfolder also contains configurations and project setups for building the ODF libraries.
  73.  
  74. Once you’ve copied ODFDev, you can throw away folders for other environments. Inside the ODF folder, you can throw away the RB (Symantec C++ for Power Macintosh) and CW (CodeWarrior) folders. You only need to keep the MC (MrC/MrCpp for MPW) and/or SC (SC/SCpp for MPW) and SL (Shared Library) folders. The same is true for all the example projects.
  75.  
  76. The following table indicates for each folder which compiler is used and the resulting binary. Notice that the 68K ODF Shared Library is currently built with the MPW 68K C++ compiler (SCpp) and the PPC ODF Shared Library is built with CodeWarrior.
  77.  
  78. Folder                    Compiler Used                                        ODF Folder                                        Sample Folders
  79.  
  80. CWPPCDebug              CodeWarrior                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  81. CWPPCRelease            CodeWarrior                PPC Release ODF Static Libraries            PPC Release Part Editor
  82. MCPPCDebug                    MrC                                                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  83. MCPPCRelease            MrC               PPC Release ODF Static Libraries         PPC Release Part Editor
  84. RBPPCDebug           Symantec C++      PPC Debug  ODF Static Libraries          PPC Debug Part Editor
  85. RBPPCRelease   Symantec C++      PPC Release ODF Static Libraries         PPC Release Part Editor
  86.  
  87. CW68KDebug        CodeWarrior          68K Debug ODF Static Libraries           68K Debug Part Editor
  88. CW68KRelease      CodeWarrior          68K Release ODF Static Libraries         68K Release Part Editor
  89. SC68KDebug        SCpp                 68K Debug ODF Static Libraries           68K Debug Part Editor
  90. SC68KRelease      SCpp                 68K Release ODF Static Libraries         68K Release Part Editor
  91.  
  92. SLPPCDebug     CodeWarrior          PPC Debug ODF Shared Library                n/a
  93. SLPPCRelease   CodeWarrior          PPC Release ODF Shared Library                 n/a
  94. SL68KDebug        SCpp                 68K Debug ODF Shared Library                n/a
  95. SL68KRelease   SCpp                 68K Release ODF Shared Library           n/a
  96.  
  97.  
  98. The following table indicates which folders are necessary for each supported compiler. 
  99.  
  100. Folder                        CW/PPC          CW/68K            SCpp                MrC        Symantec C++
  101.  
  102. CWPPCDebug             Y              N                 N               N             N        
  103. CWPPCRelease           Y              N                 N               N             N
  104. MCPPCDebug                N              N                 N               Y             N
  105. MCPPCRelease              N              N                 N               Y             N    
  106. RBPPCDebug                N              N                 N               N             Y    
  107. RBPPCRelease           N              N                 N               N             Y    
  108.  
  109. CW68KDebug                N              Y                 N               N             N    
  110. CW68KRelease              N              Y                 N               N             N    
  111. SC68KDebug                N              N                 Y               N             N    
  112. SC68KRelease           N              N                 Y               N             N    
  113.  
  114. SL68KDebug             N              Y                 Y               N             N    
  115. SL68KRelease              N              Y                 Y               N             N    
  116. SLPPCDebug                Y              N                 N               Y             Y    
  117. SLPPCRelease              Y              N                 N               Y             Y    
  118.  
  119. 2) Copy the stationery files for the ODF example parts to your Stationery folder. (optional)
  120. If you want to run the ODF sample parts, you will need to copy the stationery files for these parts into your OpenDoc Stationery folder (located, by default, at the root level of your startup volume). The stationery files are located in the ":ODF Sample Parts:Stationery:" folder inside the OpenDoc Development Framework folder on the CD-ROM. 
  121.  
  122. 3) Copy any desired reference materials to your local hard drive. (optional)
  123. ODF comes with several documents and tools, such as the ODF Class Reference and MacBrowse, that can make it easier to navigate through the ODF code. You can copy any of these to your local hard drive.
  124.  
  125. The "Documentation" folder contains the ODF Class Reference, which is a QuickView database that allows you to quickly search for the documentation for a particular class or method. Make sure that the QuickView application and the ODF Assistant document are in the same folder when you launch the application. 
  126.  
  127. The ":Tools & Goodies:MacBrowse:" folder contains the MacBrowse application that enables you to browse the ODF source code directly.  It also contains a subfolder with the MacParse tool, which you can use to create parsed files for use with MacBrowse.
  128.  
  129. The ":Tools & Goodies:Object Master™:" folder contains an empty ObjectMaster project, which you can use to create a browseable set of the ODF source code.
  130.  
  131. 4) Make an alias to the ODF library (and sample parts).
  132. To make debugging with ODF easier, you need to make an alias to the debug version of the ODF shared library and put the alias into your Editors folder (in the system folder of your startup volume). If your ODF environment is on a different volume than your system folder, you can create an Editors folder at the root level of your development hard drive and put the alias there. (OpenDoc does not allow you to put aliases to files on different volumes in the Editors folder.)
  133.  
  134. Note: The ODFLibrary (or an alias to it) must be located in your Editors folder. Part editors that were built with ODF require the existence of this library and will not run without it.
  135.  
  136. The debug versions of the ODF shared library (ODFLibrary) are already built. The ODFLibrary for PowerPC  is located in the ":ODFDev:ODF:SLPPCDebug:Bin:" folder. The ODFLibrary for 68K is located in the ":ODFDev:ODF:SL68KDebug:Bin:" folder.
  137.  
  138. If you want to debug the ODF sample parts, you can also add an alias to each of these part editors to your Editors folder. The debug version of an ODF part editor is located within either the ":MCPPCDebug:Bin:" folder for PowerPC or the ":SC68KDebug:Bin:" folder for 68K of the particular sample part. For example, the debug, PowerPC part editor for ODFDraw is located in the ":ODFDev:Draw:MCPPCDebug:Bin:" folder.
  139.  
  140. For convenience, you can also make an alias to the symbol files for the ODFLibrary (ODFLibrary.xSYM) and put it on your desktop. You can then use this alias to find the ODFLibrary debugging information quickly when you launch your debugger.
  141.  
  142. IMPORTANT: Make sure that neither the release version of the ODFLibrary nor any of the ODF sample parts is installed on your machine while you are attempting to trace through either the ODFLibrary or sample parts. The chances are good that you will not get the right library. OpenDoc searches for the first part editor and library that matches its search parameters. The release version of the ODF libraries and samples are simply optimized versions that do not have internal debugging information, such as MacsBug symbols or assertions.
  143.  
  144. 5) Relaunch the MPW Shell.
  145. If the MPW Shell application is running, quit it, then launch it again. It will ask you to specify the location of your ODF folder. The folder you want to specify is “:ODFDev:ODF:” on your hard disk. MPW may also ask you to specify the location of your OpenDoc (or OpenDoc SDK) files (and perhaps more than once -- sorry about that!). If the OpenDoc files are installed inside your MPW folder as described above, simply select the OpenDoc folder inside your MPW folder (this folder contains OpenDoc interfaces and libraries). Finally, you may be asked to locate the Build Support folder -- this folder is also located inside the MPW folder.
  146.  
  147.  
  148. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  149. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.